package com.cmti.skeleton.entity;

import java.io.Serializable;
import java.util.Date;

public class SysLog implements Serializable {

    public static final Short RESULT_SUCCESS = new Integer(0).shortValue(); // 操作成功
    public static final Short RESULT_FAIL = new Integer(1).shortValue(); // 操作失败
    public static final Short TYPE_SYSTEM = new Integer(1).shortValue();    // 系统自动记录的日志
    public static final Short TYPE_OPERATE = new Integer(2).shortValue();   // 操作日志

    private Long id;

    private Date operTime;

    private Integer operatorId;

    private String logContent;

    private Short result;

    private String ip;

    private Short type;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getOperTime() {
        return operTime;
    }

    public void setOperTime(Date operTime) {
        this.operTime = operTime;
    }

    public Integer getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Integer operatorId) {
        this.operatorId = operatorId;
    }

    public String getLogContent() {
        return logContent;
    }

    public void setLogContent(String logContent) {
        this.logContent = logContent == null ? null : logContent.trim();
    }

    public Short getResult() {
        return result;
    }

    public void setResult(Short result) {
        this.result = result;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }
}
